package net.dodoman.thread.ticket;

public class TicketMain {

	/**
	 * 测试类
	 * 
	 * @param args
	 */
	public static void main(String[] args) {
		TicketMachine tm = new TicketMachine(10);// 100张票
		SalesThread st1 = new SalesThread(tm, "SalesThread 1");
		SalesThread st2 = new SalesThread(tm, "SalesThread 2");
		SalesThread st3 = new SalesThread(tm, "SalesThread 3");
		SalesThread st4 = new SalesThread(tm, "SalesThread 4");
		SalesThread st5 = new SalesThread(tm, "SalesThread 5");

		st1.start();
		st2.start();
		st3.start();
		st4.start();
		st5.start();

	}

}
